CREATE TABLE [dbo].[TCCONC_BANC]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_BANC] [dbo].[TD_VC_003] NOT NULL,
[NU_CNTA_BANC] [dbo].[TD_VC_020] NOT NULL,
[AA_BNCO] [dbo].[TD_VC_004] NOT NULL,
[MM_BNCO] [dbo].[TD_VC_002] NOT NULL,
[FE_OPER] [dbo].[TD_DT_001] NOT NULL,
[FE_REVE] [dbo].[TD_DT_001] NULL,
[NU_PROC] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TCCONC_BA__NU_PR__31B762FC] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCCONC_BA__CO_US__32AB8735] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCCONC_BA__FE_US__339FAB6E] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCCONC_BA__CO_US__3493CFA7] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCCONC_BA__FE_US__3587F3E0] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCCONC_BANC] ADD CONSTRAINT [PK__TCCONC_B__AEF0D53F0C66AE13] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC], [AA_BNCO], [MM_BNCO], [FE_OPER]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCCONC_BANC] ADD CONSTRAINT [FK__TCCONC_BANC__03874F4F] FOREIGN KEY ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC]) REFERENCES [dbo].[TMCNTA_BANC] ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC])
GO
